<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<sec:authentication property="name"></sec:authentication>
<sec:authentication property="authorities" var="authorities" scope="page"></sec:authentication>
<c:forEach var="authorize" items="${authorities}">
    <p>${authorize.authority}</p>
</c:forEach>
<sec:authorize ifAnyGranted="ROLE_ADMIN">
    <p>这是admin的用户，拥有admin的权限</p>
</sec:authorize>
<form action="/boots/index" method="get">
<input type="text" value="" name="input">
<textarea name="message" id="" cols="30" rows="10"></textarea>
<input type="submit" value="提交">
    <input type="search">
</form>
</textarea>

</body>
</html>
